package com.xbongbong.pro.message.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * name 字段没有使用，不用做国际化 by kaka
 * @author 魏荣杰
 * @date 2019/4/5 10:38
 * @since v1.0
 * @version v1.0
 */
@Getter
public enum MessagePushRefTypeEnum {
    /**
     *
     */
    COMMON_DETAIL("enum.messagePushRefType.name.common_detail", "commonDetail"),
    SPECIAL_DETAIL("enum.messagePushRefType.name.special_detail", "specialDetail"),
    COMMON_LIST("enum.messagePushRefType.name.common_list", "commonList"),
    SPECIAL_LIST("enum.messagePushRefType.name.special_list","specialList"),
    SALES_REPORT("enum.messagePushRefType.name.sales_report", "salesReport"),
    EXPORT("enum.messagePushRefType.name.export", "export"),
    STATISTIC("enum.messagePushRefType.name.statistic", "statistic"),
    DATA_WARNING("enum.messagePushRefType.name.data_warning", "dataWarning"),
    DISTRIBUTOR("enum.messagePushRefType.name.distributor", "distributor"),
    ;

    /**
     * 名称
     */
    private String name;
    /**
     * 英文名
     */
    private String alias;

    MessagePushRefTypeEnum(String name, String alias) {
        this.name = name;
        this.alias = alias;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
